-- GENERATED SPELL FOR [Thaurissan Firewalker] --


function spell0_7037(pUnit, Event) --@Flame Buffet,n/a--
pUnit:FullCastSpellOnTarget(10452,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7037', 22200, 1)
end

function spell1_7037(pUnit, Event) --@Flame Spray,n/a--
pUnit:FullCastSpellOnTarget(10733,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7037', 1700, 1)
end

function Sorts_7037(pUnit, Event)
local choix_sorts_7037 = math.random(0, 1)
if choix_sorts_7037 == 0 then
pUnit:RegisterEvent('spell0_7037', 1, 1)
end
if choix_sorts_7037 == 1 then
pUnit:RegisterEvent('spell1_7037', 1, 1)
end
end

function mob7037_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7037', math.random(1500, 3000), 1)
end

function mob7037_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7037_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7037_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7037, 1, 'mob7037_Action')
RegisterUnitEvent(7037, 2, 'mob7037_Leave')
RegisterUnitEvent(7037, 3, 'mob7037_Kill')
RegisterUnitEvent(7037, 4, 'mob7037_Die')
